package com.atguigu.java4;

public class AccountTest {
		public static void main(String[] args) {
				Customer c = new Customer("Jane","Smith");
				Account a = new Account(1000,2000,1.23);
				//c.setAccount(a);
				
//				a.deposit(100);
//				a.withdraw(960);
//				a.withdraw(2000);
				c.getAccount().deposit(100);
				c.getAccount().withdraw(960);
				c.getAccount().withdraw(2000);
				System.out.println("Customer [" + c.getFirstName() + "] has an account: id is " +  a.getId() + 
						                   ", annualInterestRate is " + a.getAnnualInterestRate() + "%,balance is " + a.getBalance());
		}
}
